//
//  UIView+Tips.h
//  iOSLib
//
//  Created by gaofeng on 15/11/24.
//  Copyright © 2015年 zyb. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "TipsTextManager.h"
#import "TipsView.h"

@interface UIView (Tips)

/**
 showTipsWithTipsTextModel 由各个业务单独维护空页面

 @param model TipsTextModel
 @param path 是图片本地路径 固定值[[ResourceManager sharedInstance]getImagePath]
 */
- (TipsView *)showTipsWithTipsTextModel:(TipsTextModel *)model imagePath:(NSString *)path tapCallBack:(TipsViewTouchedCallBack)callBack frame:(CGRect)frame;
/**
 *  @param path    是图片本地路径 固定值[[ResourceManager sharedInstance]getImagePath]
 */
- (TipsView *)showTipsWithTipsType:(ZYBViewTipsType)tipType imagePath:(NSString*)path;
/**
 *  @param path      是图片本地路径 固定值[[ResourceManager sharedInstance]getImagePath]
 */
- (TipsView *)showTipsWithTipsType:(ZYBViewTipsType)tipType imagePath:(NSString*)path tapCallBack:(TipsViewTouchedCallBack)callBack;

/**
 * 注:此方法tips的Size是UIScreen的Size ,,可是我把他废掉了!
 */
//- (void)showTipsWithNavigationBar:(ZYBViewTipsType)tipType tapCallBack:(TipsViewTouchedCallBack)callBack;
/**
 *  @param path      是图片本地路径 固定值[[ResourceManager sharedInstance]getImagePath]
 */
- (TipsView *)showTipsWithTipsType:(ZYBViewTipsType)tipType imagePath:(NSString*)path tapCallBack:(TipsViewTouchedCallBack)callBack offset:(CGFloat)offset;
/**
 *  @param path      是图片本地路径 固定值[[ResourceManager sharedInstance]getImagePath]
 */

- (TipsView *)showTipsWithType:(ZYBViewTipsType)tipType imagePath:(NSString*)path tapCallBack:(TipsViewTouchedCallBack)callBack frame:(CGRect)frame ;

/**
 *  @param path      是图片本地路径 固定值[[ResourceManager sharedInstance]getImagePath]
 *  @param imageSize //用于图片按比例压缩
 */
- (TipsView *)showTipsWithTipsTextModel:(TipsTextModel *)model imagePath:(NSString *)path tapCallBack:(TipsViewTouchedCallBack)callBack frame:(CGRect)frame resizeImageSize:(CGSize)imageSize;
/**
 *  @param path      是图片本地路径 固定值[[ResourceManager sharedInstance]getImagePath]
 */
- (TipsView *)showLoadFailedTipWithTapCallBack:(TipsViewTouchedCallBack)callBack  imagePath:(NSString*)path;

- (void)dismissTipsView;

- (TipsView *)getTipsView;

- (void)reloadTipImageViewWithCurrentPath:(NSString *)path;

- (TipsView *)showTipsWithImageName:(NSString *)imageName tapCallBack:(TipsViewTouchedCallBack)callBack offset:(CGFloat)offset;

#pragma mark -- 旧的方法
- (TipsView *)showTipsWithTipsType:(ZYBViewTipsType)tipType;

- (TipsView *)showTipsWithTipsType:(ZYBViewTipsType)tipType tapCallBack:(TipsViewTouchedCallBack)callBack;
- (TipsView *)showTipsWithTipsType:(ZYBViewTipsType)tipType tapCallBack:(TipsViewTouchedCallBack)callBack offset:(CGFloat)offset;

- (TipsView *)showTipsWithType:(ZYBViewTipsType)tipType tapCallBack:(TipsViewTouchedCallBack)callBack frame:(CGRect)frame ;
- (TipsView *)showTipsWithType:(ZYBViewTipsType)tipType imagePath:(NSString *)path tapCallBack:(TipsViewTouchedCallBack)callBack frame:(CGRect)frame resizeImageSize:(CGSize)resize;

- (TipsView *)showLoadFailedTipWithTapCallBack:(TipsViewTouchedCallBack)callBack;


@end

